package com.sun.flex;

import java.io.File;
import java.io.FileOutputStream;

public class UploadFile {
	public void uploadFile(byte[] content, String fileName) throws Exception {
		File file = new File("D:/COMBO/workspace/COMBO/WebRoot/uploads/"
				+ fileName);
		
		FileOutputStream stream = new FileOutputStream(file);
		System.out.println("上传文件");
		
		
		
		if (content != null)
			stream.write(content);
		stream.close();
		
	}
}